﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Light.Framework.Model;

namespace Light.Framework.Contract
{
    /// <summary>
    /// 实体接口类
    /// </summary>
    public interface IEntity
    {
        int ID { get; set; }

        bool IsDeleted { get; set; }

        DateTime TimeCreated { get; set; }

        DateTime TimeUpdated { get; set; }

        Organization Organization { get; set; }

        bool IsNew { get; }
        bool IsValidated { get; }
        string GetErrorMessage();

        Dictionary<string, string> GetOrderFields();
        Dictionary<string, string> GetSearchFields();
    }
}
